Repository navigation
feat(pulumi): a preview observation for the graph, and nodes for a stack with no export (#5332) - #5372
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a preview depth to the pulumi lexicon's
describeResources, the counterpart of the terraform plan observation.CHANT_PULUMI_OBSERVE=preview(ordepth: "preview") runspulumi preview --json --show-sames, orplunge previewfor a member on plunge, and reads the steps with the change-set adapter's parser (pulumiStepsandpulumiStepsAction, plus a newpulumiStepStatesexport of the existing state pairing). Nodes carry the attribute names the terraform plan depth uses:planAction,planActions,planActionReason,planReplacePaths,planAfterUnknownandplanChanges. A resource the graph does not hold becomes a node with statusplanned, which is every resource of a stack with no export. A declared node with no step isnot-reached.Everything the preview adds to a node goes through the filter of #5363 (
mayCarryKeyinreference-props.ts, andreferencePropsfor the inputs). Secrets and credential-like keys stay off the node. So does the data of a Kubernetes Secret or ConfigMap, and any string too long to be a name. A change under such a key is not listed.rootReads["pulumi.members.<member>"]saysdepth: "preview". When the preview fails it also carriesfellBackTo(statewhen plunge's records answered,declaredotherwise) and areason:no-credentials,needs-install,no-stack,no-binaryorpreview-failed. The member page lists each reason, andcli/graph.mdxnames the new key.The floor is
PULUMI_PREVIEW_OBSERVATION_FLOORinlexicons/pulumi/src/chant-floors.ts, with the floor table regenerated.Tests run a fake engine binary (a node script behind
engineRunnerAt). They cover stacks with and without an export, the filter and each reason. Two more check plunge's fallback and the depth rules.pulumiDisruptionQueries(#5364) is not on main yet, so the preview parsing reused here is the change-set adapter's own.Closes #5332